package com.shux.usermanager.biz;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.shux.usermanager.entity.SysUser;
import com.shux.utils.page.PageData;

public interface ISysUserBiz {
    public SysUser loadSysUser(Long userId); 
    
    public SysUser getSysUserByUsername(PageData pageData);
    
    public void updateSysUser(SysUser sysUser);
    
    public SysUser getUserAndRoleById(String userId);
    /**
     * 通过用户名获得按钮权限
     * @param username
     * @return
     */
    public Map<String,String> queryUserButtonAuth(String username);
    public void updateUserIp(String userId,HttpServletRequest request);
}
